<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="leagal_aid.bean.*,java.util.*,java.io.*" %>
<%
request.setCharacterEncoding("utf-8");

int id = Integer.parseInt(request.getParameter("id"));
String picture = request.getParameter("picture");
String txtDate = request.getParameter("txtDate");
int homepage = Integer.parseInt(request.getParameter("homepage"));
System.out.println(txtDate);
System.out.print("doupdate.jsp : id:"+id+"+picture :"+picture+"+txtDate:"+txtDate+"homepage:"+homepage);
PictureBean pictureBean = new PictureBean();
    if(pictureBean.doUpdata(picture,txtDate,homepage,id)){
    	
	}else{
		response.setCharacterEncoding("utf-8");
		PrintWriter pout = response.getWriter();
		pout.print("<script>alert('不成功'); window.location='../updaeteam.jsp' </script>");
		pout.flush();
		pout.close();
		//response.sendRedirect("login.html");
	};

%>